package com.ylc.chat.service;

import com.ylc.chat.dao.ChatrecordDao;
import com.ylc.chat.entity.Chatrecord;

import java.util.List;

/**
 * @Author: ylc
 * @Description:
 */
public class ChatrecordService {
    ChatrecordDao chatrecordDao = new ChatrecordDao();

    public List<Chatrecord> getRecordByUid(int sendUid, int receiveUid){
        return chatrecordDao.getRecordByUid(sendUid, receiveUid);
    }

    public int addRecord(Chatrecord chatrecord){
        return chatrecordDao.addRecord(chatrecord);
    }
}
